package org.example.common.operation;//package com.njwx.yq.common.operation;
//
//import cn.hutool.core.util.StrUtil;
//import com.mzt.logapi.beans.Operator;
//import com.mzt.logapi.service.IOperatorGetService;
//import org.example.common.userinfo.UserService;
//import org.springframework.stereotype.Component;
//
///**
// * 参考 https://tech.meituan.com/2021/09/16/operational-logbook.html
// * https://github.com/mouzt/mzt-biz-log
// * 记录操作日志： 获取当前操作账号
// *
// * @author dingcan
// */
//@Component
//public class NjwxOperatorGetServiceImpl implements IOperatorGetService {
//
//    @Override
//    public Operator getUser() {
//        return StrUtil.isNotBlank(UserService.currentUserName()) ? new Operator(UserService.currentUserName()) : new Operator("none");
//    }
//}